package com.endurance.service;

import com.endurance.mapper.PaymentTransactionMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: sunlin
 * @Date: 2024-05-20 8:36
 * @Version: 1.0
 * @Description:
 */

@Component
@Slf4j
public class PaymentService {

    public void updatePaymentStatus() {
        new PaymentTransactionMapper() {
            @Override
            public void updatePaymentStatus() {
                log.info("第二个模块：修改订单状态为已支付...");
            }
        }.updatePaymentStatus();
    }

}
